package com.qingcheng.service.goods;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.goods.Album;
import com.qingcheng.pojo.goods.Image;

import java.util.*;

/**
 * album业务逻辑层
 */
public interface AlbumService {


    public List<Album> findAll();


    public PageResult<Album> findPage(int page, int size);


    public List<Album> findList(Map<String,Object> searchMap);


    public PageResult<Album> findPage(Map<String,Object> searchMap,int page, int size);


    public Album findById(Long id);

    public void add(Album album);


    public void update(Album album);


    public void delete(Long id);



    public Album findImages(String id);


    public List<Image> findImagesById(Long id);

    public void addImage(Image image,Long albumId);

    public void deleteImage(Long imageId,Long albumId);

    public void moveImage(Long imageId,Long albumId,Long targetAlbumId);

    public void deleteImageMany(Long[] imageIds,Long albumId);

    public void addImageMany(List<Image> images,Long albumId);

    public void moveImageMany(Long[] imageIds,Long albumId,Long targetAlbumId);




}
